package cn.mumzone.pos.presenter.contract;

import java.util.List;

import cn.mumzone.basic.mvp.BasePresenter;
import cn.mumzone.basic.mvp.BaseView;
import cn.mumzone.pos.model.GoodsTreeEntity;
import cn.mumzone.pos.model.RepoGoodsEntity;
import cn.mumzone.pos.model.RepoListGoodsEntity;
import cn.mumzone.pos.model.RepositoryEntity;

/**
 * Created by qiuzhenhuan on 2019/7/31.
 */

public interface StockSearchContract {

    interface View extends BaseView {

        void showRepositoryList(List<RepositoryEntity> repositoryList);

        void showGoodsList(List<RepoListGoodsEntity> goodsEntities, boolean isRefresh);

        void showScanGoodsDialog(List<RepoListGoodsEntity> list);

        void showGoodsTreeClassify(List<GoodsTreeEntity> goodsTreeEntities);

        void showGoBack();
    }

    interface Presenter extends BasePresenter<View> {

        void loadRepositoryList();

        void loadRepoGoodsById(String repositoryId, String classifyId, String keyword, boolean isRefresh, boolean isScan);

        void loadGoodsTreeClassify();

        void initEvent();
    }
}
